home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem Batch file for running send.xst
- set email=
- set rcpt=
- set mailserver=
- set surname=
- set firstname=
-
- if '%1' == '' goto usage
- if '%1' == '-h' goto usage
- set email=%1
-
- if '%2' == '' goto usage
- set rcpt=%2
-
- if '%3' == '' goto usage
- set mailserver=%3
-
- if '%4' == '' goto do
- if not '%4' == '-f' if not '%4' == '-s' goto usage
- if '%4' == '-f' goto f
- if '%4' == '-s' goto s
- echo This should not happen
- goto exit
-
- :f
- set firstname=%5
- if '%6' == '' goto do
- if '%6' == '-s' goto s2
- goto usage
-
- :s
- set surname=%5
- if '%6' == '' goto do
- if '%6' == '-f' goto f2
- goto usage
-
- :f2
- set firstname=%7
- goto do
-
- :s2
- set surname=%7
- goto do
-
- :usage
- echo Usage: send email rcpt mailserver [-f firstname] [-s surname]
- goto exit
-
- :do
- ..\apps\xtract send.xst
-
- :exit
-